﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="menu_kfu.ascx.cs" Inherits="cn_common_menu_kfu" %>
<h1 class="rightbox_h1 menubox_h1">科技服务</h1>
<div class="menubox_div">
<script language="javascript">
function Switchmenu(obj){
if(document.getElementById){
var el = document.getElementById("menu_"+obj);
var ar = document.getElementById("menu").getElementsByTagName("ul"); 
if(el.style.display != "block"){ 
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu")
ar[i].style.display = "none";
document.getElementById("menu"+(i+1)).className="menutbg_1 cursor"
}
el.style.display = "block";
document.getElementById("menu"+obj).className="menutbg_2 cursor"
}else{
el.style.display = "none";
document.getElementById("menu"+obj).className="menutbg_1 cursor"
}
}
}
</script>
<script language="javascript" id="clientEventHandlersJS">
<!--
var number=<%=Num %>;
function LMYC() {
var lbmc;
    for (i=1;i<=number;i++) {
        lbmc = eval('LM' + i);
        //treePic = eval('treePic'+i);
        //treePic.src = 'images/file.gif';
        lbmc.style.display = 'none';
    }
}
 
function ShowFLT(i) {
    lbmc = eval('LM' + i);
    //treePic = eval('treePic' + i)
    if (lbmc.style.display == 'none') {
        LMYC();
        //treePic.src = 'images/nofile.gif';
        lbmc.style.display = '';
    }
    else {
        //treePic.src = 'images/file.gif';
        lbmc.style.display = 'none';
    }
}
//-->
</script>
	<div id="menu">
<asp:Repeater ID="rptList" runat="server" onitemdatabound="rptList_ItemDataBound"><ItemTemplate>
		<div id="menu<%# Container.ItemIndex+1 %>" class='menutbg_<asp:Literal ID="ltrNum" runat="server"></asp:Literal> cursor' onClick="Switchmenu('<%# Container.ItemIndex+1 %>')"><%# Eval("ColumnName") %></div>
		<ul id="menu_<%# Container.ItemIndex+1 %>" class="submenu">
			  <table cellspacing="0" cellpadding="0" width="100%" border="0" class="mbox">
             <asp:Repeater ID="rptCategory" runat="server"><ItemTemplate>
                <tr>
                  <td  class="mt1"><a  href="kfu.aspx?cid=<%# Eval("ColumnId") %>&parentId=<%# Eval("parentId") %>" ><%# Eval("ColumnName") %></a> </td>
                </tr>
                </ItemTemplate></asp:Repeater>
              </table>
		</ul>
</ItemTemplate></asp:Repeater>
		
	 </div>
 </div>
